package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基础商品对象 supply_goods
 *
 * @author ruoyi
 * @date 2025-08-19
 */
public class SupplyGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private Double cunit;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String categroyId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categroyName;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 条码 */
    @Excel(name = "条码")
    private String code;

    /** 保质期 */
    @Excel(name = "保质期")
    private String life;

    /** 排序 */
    @Excel(name = "排序")
    private Double sort;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplyId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    public void setCunit(Double cunit)
    {
        this.cunit = cunit;
    }

    public Double getCunit()
    {
        return cunit;
    }

    public void setCtime(Date ctime)
    {
        this.ctime = ctime;
    }

    public Date getCtime()
    {
        return ctime;
    }

    public void setCategroyId(String categroyId)
    {
        this.categroyId = categroyId;
    }

    public String getCategroyId()
    {
        return categroyId;
    }

    public void setCategroyName(String categroyName)
    {
        this.categroyName = categroyName;
    }

    public String getCategroyName()
    {
        return categroyName;
    }

    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setLife(String life)
    {
        this.life = life;
    }

    public String getLife()
    {
        return life;
    }

    public void setSort(Double sort)
    {
        this.sort = sort;
    }

    public Double getSort()
    {
        return sort;
    }

    public void setSupplyId(Long supplyId)
    {
        this.supplyId = supplyId;
    }

    public Long getSupplyId()
    {
        return supplyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("unit", getUnit())
                .append("cunit", getCunit())
                .append("ctime", getCtime())
                .append("categroyId", getCategroyId())
                .append("categroyName", getCategroyName())
                .append("price", getPrice())
                .append("remark", getRemark())
                .append("imageUrl", getImageUrl())
                .append("code", getCode())
                .append("life", getLife())
                .append("sort", getSort())
                .append("supplyId", getSupplyId())
                .toString();
    }
}
